/*pc*/
@media only screen and (min-device-width: 768px) {
  .model {
    width: 1088px;
    margin: 0 auto;
    /* 底部输入框 */
  }
  .model .menu {
    width: 100%;
    height: 80px;
    background: #fff;
    display: none;
  }
  .model .menu .last {
    line-height: 80px;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 30px;
    font-weight: 400;
    color: #000;
    cursor: default;
  }
  .model .chat .other pre {
    font-size: 1rem;
  }
  .model .chat .avatar {
    width: 5rem;
    height: 5rem;
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .model .chat .avatar img {
    width: 5rem;
    height: 5rem;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .model .footer {
    margin-bottom: 0.3rem;
    background: #fff;
    padding: 1.56rem;
    display: flex;
    justify-content: space-between;
    /* 提交 */
  }
  .model .footer textarea.textarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    background: #f2f2f2;
    border: none;
    outline: none;
    border-radius: 15px;
    font-size: 1rem;
    text-indent: 1em;
    flex: 6;
    color: #000;
    box-sizing: border-box;
  }
  .model .footer .emojis {
    flex: 1;
    font-size: 2rem;
    line-height: 2;
    padding-left: 15px;
    color: #000;
    text-align: center;
  }
  .msg {
    padding: 0.5rem;
  }
  .msg p {
    font-size: 1rem;
    margin: 0;
  }
}
/*mobile*/
@media only screen and (max-device-width: 768px) {
  .model {
    overflow: hidden;
  }
  .menu {
    height: 2.5rem;
    background: #fff;
  }
  .menu .last {
    line-height: 2.5rem;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    cursor: default;
  }
  .chat .other pre {
    font-size: 1rem;
  }
  .chat .avatar {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    display: block;
    z-index: 2;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .chat .avatar img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.9);
  }
  .msg {
    padding: 1rem;
  }
  .msg p {
    font-size: 1rem;
    margin: 0;
  }
  /* 底部输入框 */
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1.1rem;
    display: flex;
    justify-content: space-between;
    /* 提交 */
  }
  .footer textarea.textarea {
    width: 100%;
    resize: none;
    overflow: hidden;
    background: #f2f2f2;
    border: none;
    outline: none;
    border-radius: 15px;
    font-size: 1rem;
    text-indent: 1em;
    flex: 5;
    color: #000;
    box-sizing: border-box;
  }
  .footer .emojis {
    flex: 1;
    font-size: 1.2rem;
    line-height: 2;
    padding-left: 15px;
    color: #000;
    text-align: left;
  }
}
/* 头部区域 */
.chat li {
  padding: 0.5rem;
  list-style: none;
}
/* 机器人  */
.other {
  display: flex;
}
.other .msg {
  align-self: flex-end;
  order: 1;
  border-top-left-radius: 0px;
  margin-left: 0.625rem;
  box-shadow: -1px 2px 0px #d4d4d4;
}
/* 自己 */
.self {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.self .msg {
  order: 1;
  border-bottom-right-radius: 0px;
  margin-right: 0.625rem;
  box-shadow: 1px 2px 0px #d4d4d4;
}
.self .avatar {
  order: 2;
}
.msg {
  background: white;
  min-width: 3.125rem;
  border-radius: 0.625rem;
  border: 0.5px solid #c2d9ea;
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.07);
}
.msg_right {
  background: #1a7bfd;
}
.msg .left {
  color: #000;
}
.msg .right {
  color: #fff;
}
